﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OnlineMealOrdering.Domain
{
    /// <summary>
    /// 
    /// </summary>
    public class OAuth2TokenEntity
    {
        public int Id { get; set; }

        public string Access_token { get; set; }

        public string Expires_in { get; set; }

        public string Refresh_token { get; set; }

        public string Openid { get; set; }

        public string Openkey { get; set; }

        public static OAuth2TokenEntity Create(string access_token, string expires_in, string refresh_token,string opid,string opkey)
        {
            var entity = new OAuth2TokenEntity();
            entity.Access_token = access_token;
            entity.Expires_in = expires_in;
            entity.Refresh_token = refresh_token;
            entity.Openid = opid;
            entity.Openkey = opkey;
            return entity;
        }
    }
}
